/**
 * 
 */
package wangjg.xuexiban.activity.exam.layer;

import wangjg.game.layer.Graphics;
import wangjg.game.widget.Widget;

/**
 * @author wangjg
 *
 */
public class CellBox extends Widget{
	public CellBox(float widthPercent, float heightPercent) {
		super(widthPercent, heightPercent, 0);
	}
	
	public CellBox(float widthPercent, float heightPercent, int spacing) {
		super(widthPercent, heightPercent, spacing);
	}

	public void paint(Graphics g) {
		int[] ca = {0xff00ffff, 0xffFF0000, 0xff00CC00};
		g.setColor(ca[id%3]);
		g.drawRect(pp.getAbsX(), pp.getAbsY(), pp.getAbsWidth(), pp.getAbsHeight());
	}

}